<template>
  <div>
    <h2>关于博主：</h2>
    <el-form>
      <el-form-item label="博主介绍">
        <el-input type="textarea" v-model="content"></el-input>
      </el-form-item>
      <el-button type="primary" @click="getAbout">确 认</el-button>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      content: "",
    };
  },
  methods: {
    getAbout() {
      this.axios.post(`/rest/about`, { content: this.content }).then((res) => {
        console.log(res);
      });
    },
  },
};
</script>

<style lang="less" scoped></style>
